<?php
namespace Apps\Common\Models;
/**
 * 服务项目预约记录Model
 * @author     chenxiaolin
 * @date        2016年1月19日
 * @version     2.0.0
 * @copyright   Copyright 2016 meelier.com
 */
class CosOnlineAppointment extends \PhalconPlus\Database\Model{
	public $id;
	public $online_product_id;
	public $product_name;
	public $appointment_time;
	public $set_man;
	public $set_man_id;
	public $is_buy;
	public $product_use_num;
	public $product_rest_num;
	public $tel;
	public $set_time;
	public $appointment_state;
	public $remark;
	public $technician;
	public $technician_id;
	public $technician_num;
	public $shop_id;
	public $shop_name;
	public $state;

	public function getSource()
	{
		return 'cos_online_appointment';
	}

	public static function find($parameters = null)
	{
		return parent::find($parameters);
	}

	public static function findFirst($parameters = null)
	{
		return parent::findFirst($parameters);
	}

	public function columnMap()
	{
		return array(
				'id' => 'id',
				'online_product_id' => 'online_product_id',
				'product_name' => 'product_name',
				'appointment_time' => 'appointment_time',
				'set_man' => 'set_man',
				'set_man_id' => 'set_man_id',
				'is_buy' => 'is_buy',
				'product_use_num' => 'product_use_num',
				'product_rest_num' => 'product_rest_num',
				'tel' => 'tel',
				'set_time' => 'set_time',
				'appointment_state' => 'appointment_state',
				'remark' => 'remark',
				'technician' => 'technician',
				'technician_id' => 'technician_id',
				'technician_num' => 'technician_num',
				'shop_id' => 'shop_id',
				'shop_name' => 'shop_name',
				'state' => 'state',
		        'type'=>'type',
		);
	}
	public function defaultColumns()
	{
		return [
				'id',
				'state'
		];
	}

}